package com.bwda.dsrs.filecenter.domain.form.filedir;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author yangjun
 * @date 2019/4/16
 */
@Data
@ApiModel(description = "共享文件状态更新")
public class FileDirShareUpdateForm {
    @ApiModelProperty(value = "目录id", required = true)
    @NotNull(message = "目录id不能为空")
    private Integer fileOrDirId;

    @ApiModelProperty(value = "0不共享 1共享")
    @Min(value = 0, message = "状态不正确!")
    @Max(value = 1, message = "状态不正确!")
    private Integer shareFlag;

    @ApiModelProperty(value = "共享对象")
    List<ShareUserRel> shareTo;
}
